<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('order/index')}">订单列表</a></li>
        <li><a href="{:url('order/receipt')}">包裹列表</a></li>
        <li class="active"><a href="{:url('order/unreceipt')}">异常包裹</a></li>
    </ul>
    <form class="well form-inline margin-top-20 js-ajax-form" method="post" action="{:url('order/receipt')}">
        <input class="form-control" type="text" name="keyword" value="{:input('keyword', '')}" placeholder="订单号/包裹编号">
        <select name="order_status" id="" class="form-control">
            <volist name="status" id="vo">
                <option value="{$key}" {:input('order_status', -1)==$key?'selected':''}>{$vo}</option>
            </volist>
        </select>
        <input type="submit" class="btn btn-primary" value="搜索">
        <a class="btn btn-danger" href="{:url('order/receipt')}">清空</a>
        <a class="btn btn-warning" href="{:url('cloud/reloadWaybill')}">重新获取运单号</a>
<!--        <button class="btn btn-warning js-ajax-submit" data-action="{:url('order/excel')}">导出</button>-->
<!--        <a type="button" class="btn btn-info" href="javascript:openIframeDialog('batch_express', '批量发货', {'width': '80%','height':'80%'})">批量发货</a>-->
    </form>
    <form method="post" class="js-ajax-form" action="{:url('order/recbatchdel')}">
<!--        <div class="table-actions">-->
<!--            <button class="btn btn-sm btn-primary js-ajax-submit" type="submit">批量删除</button>-->
<!--        </div>-->
        <div class="row">
            <table class="table table-hover table-bordered table-striped table-condensed">
                <thead>
                <tr>
<!--                    <th><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></th>-->
                    <th style="width: 2px">包裹编号</th>
                    <th>第三方订单号</th>
                    <th>收件信息</th>
                    <th style="width: 20%">地址</th>
                    <th>订单金额</th>
                    <th>订单状态</th>
                    <th>快递平台</th>
                    <th>快递公司</th>
                    <th>快递编号</th>
                    <th>{:lang('ACTIONS')}</th>
                </tr>
                </thead>
                <tbody>
                <foreach name="list" item="vo">
                    <tr>
<!--                        <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>-->
                        <td>{$vo.self_order_no}</td>
                        <td>{$vo['obtain_order_no']}</td>
                        <td>收货人：{$vo['name']}<br>手机号：{$vo.tel}</td>
                        <td>{$vo.area_info}</td>
                        <td>商品：{$vo.order_price} <br>运费：{$vo.freight_money ?:'0.00'}</td>
                        <td>{$status[$vo['order_status']]}</td>
                        <td>{$vo.manage_name}</td>
                        <td>{$vo.delivery_company}</td>
                        <td>{$vo.delivery_no}</td>
                        <td>
                            <a class="btn btn-sm btn-info" href="javascript:openIframeLayer('/admin/order/detail?id={$vo.id}', '详情', {area:['60%','60%'], move: true})">查看</a>
                            <a class="btn btn-xs btn-danger" href="{:url('order/del',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
                            <a class="btn btn-xs btn-warning js-ajax-dialog-btn" data-msg="确定要取消该包裹吗？" href="{:url('order/cancel',array('id'=>$vo['id']))}">取消</a>
                        </td>
                    </tr>
                </foreach>
                </tbody>
            </table>
            <div class="pagination">{$list->render()}</div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    function setexcel() {
        uploadOne('选择文件', '#file', 'file')
    }
</script>
</body>
</html>